package com.yyf.blogapi.util;

import org.joda.time.DateTime;
import org.joda.time.Instant;
import org.joda.time.format.DateTimeFormat;
import org.joda.time.format.DateTimeFormatter;

import java.sql.Timestamp;

public class DateUtil {

    public static Long getMillisFromyyyyMM(String year, String month){
        DateTimeFormatter yyyyMM = DateTimeFormat.forPattern("yyyyMM");
        return DateTime.parse(year + month, yyyyMM).getMillis();
    }
}
